package com.fingard.dsp.bank.reqrespobj.qrpay;

import java.util.HashMap;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;

public class ReqGenQRInfo extends RequestBase{

	/**公众账号ID*/
	public String appId = "";
	
	/**本方账号*/
	public String ownAct = "";
	
	/**商户号*/
	public String merchantId = "";
	
	/**商户定义的商品id 或者订单号*/
	public String rdSeq;
	
	public ReqGenQRInfo(HashMap<String,String> p_hashMap, ReqRespHeader p_header) throws Exception{
		reqHeader = p_header;
		if(p_hashMap.containsKey("AppId")){
			appId = p_hashMap.get("AppId");
			if(appId == null){
				appId = "";
			}
		}
		if(p_hashMap.containsKey("OurBankAccount")){
			ownAct = p_hashMap.get("OurBankAccount");
			if(ownAct == null){
				ownAct = "";
			}
		}
		if(p_hashMap.containsKey("MchId")){
			merchantId = p_hashMap.get("MchId");
			if(merchantId == null){
				merchantId = "";
			}
		}
		if(p_hashMap.containsKey("RdSeq")){
			rdSeq = p_hashMap.get("RdSeq");
		}
	}
}
